package Paineis;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;

import Utils.Utilidades;

public class PainelDeGerenciamento {
	public int x;
	public int y;
	public int width;
	public int height;
	public BufferedImage fundo;
	public BufferedImage[] MateriaisBasicos;
	public boolean mouseOver;
	public int money;
	
	
	
	

	public PainelDeGerenciamento(int X, int Y, int Width, int Height, String FileOpenImage) {
		
		this.x = X;
		this.y = Y;
		this.width = Width;
		this.height = Height;
		money = 300;
		try {
			fundo = Utilidades.LoadImage(FileOpenImage);	
		} catch (Exception e) {
			// TODO: handle exception
		}
		
		
		
	}
	
	public void Draw(Graphics2D dbg){
		dbg.setColor(Color.BLACK);
		dbg.fillRect(x, y, width, height);
		dbg.setColor(Color.YELLOW);
		dbg.drawString("Money:"+money, 740, 15);
		
	}
	
	public void Update(long diffTime){
		
	}
	
	public void diminuiMoney(int valor){
		this.money-=valor;
	}
	
	public void mouseMoved(MouseEvent e) {
		
	}
	
	public void mouseDragged(MouseEvent e) {
		
	}
	
	public void mouseReleased(MouseEvent e) {
		
	}

	
	public void mousePressed(MouseEvent e) {
		
	

	}

	
	public void mouseExited(MouseEvent e) {
		System.out.println("Fora ");

	}


	public void mouseEntered(MouseEvent e) {
		

	}

	
	public void mouseClicked(MouseEvent e) {
		
	}
	
	

}
